<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>检测对象类型</title>
</head>

<body>
    <p></p>
    <script>
        var a = {
            length: 3,
            0: 'first',
            1: 'second',
            2: 'thrid'
        };
        console.log(Array.prototype.slice.call(a, 1));
        //  切割按照length，["second"]

        var a = {
            user: "追梦子",
            fn: function (e, d, f) {
                console.log(this.user); //追梦子
                console.log(e, d, f); //10 1 2
            }
        }
        var b = a.fn;
        var c = b.bind(a, 10,1,2);
        c();
    </script>
</body>

</html>